﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Virman"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class VirmanEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the NalogodavateljaNaziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNalogodavateljaNaziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NalogodavateljaNaziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxNalogodavateljaNazivLabel;
		
		/// <summary>
		/// TextBox for the NalogodavateljaSjediste property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNalogodavateljaSjediste;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NalogodavateljaSjediste property.
		/// </summary>
		protected System.Windows.Forms.Label uxNalogodavateljaSjedisteLabel;
		
		/// <summary>
		/// TextBox for the NalogodavateljRacun property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNalogodavateljRacun;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NalogodavateljRacun property.
		/// </summary>
		protected System.Windows.Forms.Label uxNalogodavateljRacunLabel;
		
		/// <summary>
		/// TextBox for the BrojZaduzenjaModel property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBrojZaduzenjaModel;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BrojZaduzenjaModel property.
		/// </summary>
		protected System.Windows.Forms.Label uxBrojZaduzenjaModelLabel;
		
		/// <summary>
		/// TextBox for the BrojZaduzenjaPoziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBrojZaduzenjaPoziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BrojZaduzenjaPoziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxBrojZaduzenjaPozivLabel;
		
		/// <summary>
		/// TextBox for the SvrhaDoznake property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxSvrhaDoznake;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the SvrhaDoznake property.
		/// </summary>
		protected System.Windows.Forms.Label uxSvrhaDoznakeLabel;
		
		/// <summary>
		/// TextBox for the PrimateljNaziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPrimateljNaziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PrimateljNaziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxPrimateljNazivLabel;
		
		/// <summary>
		/// TextBox for the PrimateljSjediste property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPrimateljSjediste;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PrimateljSjediste property.
		/// </summary>
		protected System.Windows.Forms.Label uxPrimateljSjedisteLabel;
		
		/// <summary>
		/// TextBox for the PrimateljRacun property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPrimateljRacun;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PrimateljRacun property.
		/// </summary>
		protected System.Windows.Forms.Label uxPrimateljRacunLabel;
		
		/// <summary>
		/// TextBox for the BrojOdobrenjaModel property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBrojOdobrenjaModel;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BrojOdobrenjaModel property.
		/// </summary>
		protected System.Windows.Forms.Label uxBrojOdobrenjaModelLabel;
		
		/// <summary>
		/// TextBox for the BrojOdobrenjaPoziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBrojOdobrenjaPoziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BrojOdobrenjaPoziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxBrojOdobrenjaPozivLabel;
		
		/// <summary>
		/// TextBox for the Iznos property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIznos;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Iznos property.
		/// </summary>
		protected System.Windows.Forms.Label uxIznosLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumIzvrsenja property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumIzvrsenja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumIzvrsenja property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumIzvrsenjaLabel;
		
		/// <summary>
		/// CheckBox for the Placen property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxPlacen;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Placen property.
		/// </summary>
		protected System.Windows.Forms.Label uxPlacenLabel;
		
		/// <summary>
		/// ComboBox for the IDKnjizenja property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKnjizenja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKnjizenja property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKnjizenjaLabel;
		
		/// <summary>
		/// ComboBox for the IDKlijent property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKlijent;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKlijent property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKlijentLabel;
		
		/// <summary>
		/// TextBox for the Calculated property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxCalculated;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Calculated property.
		/// </summary>
		protected System.Windows.Forms.Label uxCalculatedLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumDospijeca property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumDospijeca;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumDospijeca property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumDospijecaLabel;
		#endregion
		
		#region Main entity
		private Entities.Virman _Virman;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Virman"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Virman"/> instance.</value>
		public Entities.Virman Virman
		{
			get {return this._Virman;}
			set
			{
				this._Virman = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNalogodavateljaNaziv.DataBindings.Clear();
			this.uxNalogodavateljaNaziv.DataBindings.Add("Text", this.uxBindingSource, "NalogodavateljaNaziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNalogodavateljaSjediste.DataBindings.Clear();
			this.uxNalogodavateljaSjediste.DataBindings.Add("Text", this.uxBindingSource, "NalogodavateljaSjediste", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNalogodavateljRacun.DataBindings.Clear();
			this.uxNalogodavateljRacun.DataBindings.Add("Text", this.uxBindingSource, "NalogodavateljRacun", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBrojZaduzenjaModel.DataBindings.Clear();
			this.uxBrojZaduzenjaModel.DataBindings.Add("Text", this.uxBindingSource, "BrojZaduzenjaModel", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBrojZaduzenjaPoziv.DataBindings.Clear();
			this.uxBrojZaduzenjaPoziv.DataBindings.Add("Text", this.uxBindingSource, "BrojZaduzenjaPoziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSvrhaDoznake.DataBindings.Clear();
			this.uxSvrhaDoznake.DataBindings.Add("Text", this.uxBindingSource, "SvrhaDoznake", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPrimateljNaziv.DataBindings.Clear();
			this.uxPrimateljNaziv.DataBindings.Add("Text", this.uxBindingSource, "PrimateljNaziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPrimateljSjediste.DataBindings.Clear();
			this.uxPrimateljSjediste.DataBindings.Add("Text", this.uxBindingSource, "PrimateljSjediste", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPrimateljRacun.DataBindings.Clear();
			this.uxPrimateljRacun.DataBindings.Add("Text", this.uxBindingSource, "PrimateljRacun", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBrojOdobrenjaModel.DataBindings.Clear();
			this.uxBrojOdobrenjaModel.DataBindings.Add("Text", this.uxBindingSource, "BrojOdobrenjaModel", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBrojOdobrenjaPoziv.DataBindings.Clear();
			this.uxBrojOdobrenjaPoziv.DataBindings.Add("Text", this.uxBindingSource, "BrojOdobrenjaPoziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIznos.DataBindings.Clear();
			this.uxIznos.DataBindings.Add("Text", this.uxBindingSource, "Iznos", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumIzvrsenja.DataBindings.Clear();
			this.uxDatumIzvrsenja.DataBindings.Add("Value", this.uxBindingSource, "DatumIzvrsenja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPlacen.DataBindings.Clear();
			this.uxPlacen.DataBindings.Add("Checked", this.uxBindingSource, "Placen", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKnjizenja.DataBindings.Clear();
			this.uxIDKnjizenja.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKnjizenja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKlijent.DataBindings.Clear();
			this.uxIDKlijent.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKlijent", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxCalculated.DataBindings.Clear();
			this.uxCalculated.DataBindings.Add("Text", this.uxBindingSource, "Calculated", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumDospijeca.DataBindings.Clear();
			this.uxDatumDospijeca.DataBindings.Add("Value", this.uxBindingSource, "DatumDospijeca", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="VirmanEditControlBase"/> class.
		/// </summary>
		public VirmanEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Virman != null) _Virman.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxNalogodavateljaNaziv = new System.Windows.Forms.TextBox();
			uxNalogodavateljaNazivLabel = new System.Windows.Forms.Label();
			this.uxNalogodavateljaSjediste = new System.Windows.Forms.TextBox();
			uxNalogodavateljaSjedisteLabel = new System.Windows.Forms.Label();
			this.uxNalogodavateljRacun = new System.Windows.Forms.TextBox();
			uxNalogodavateljRacunLabel = new System.Windows.Forms.Label();
			this.uxBrojZaduzenjaModel = new System.Windows.Forms.TextBox();
			uxBrojZaduzenjaModelLabel = new System.Windows.Forms.Label();
			this.uxBrojZaduzenjaPoziv = new System.Windows.Forms.TextBox();
			uxBrojZaduzenjaPozivLabel = new System.Windows.Forms.Label();
			this.uxSvrhaDoznake = new System.Windows.Forms.TextBox();
			uxSvrhaDoznakeLabel = new System.Windows.Forms.Label();
			this.uxPrimateljNaziv = new System.Windows.Forms.TextBox();
			uxPrimateljNazivLabel = new System.Windows.Forms.Label();
			this.uxPrimateljSjediste = new System.Windows.Forms.TextBox();
			uxPrimateljSjedisteLabel = new System.Windows.Forms.Label();
			this.uxPrimateljRacun = new System.Windows.Forms.TextBox();
			uxPrimateljRacunLabel = new System.Windows.Forms.Label();
			this.uxBrojOdobrenjaModel = new System.Windows.Forms.TextBox();
			uxBrojOdobrenjaModelLabel = new System.Windows.Forms.Label();
			this.uxBrojOdobrenjaPoziv = new System.Windows.Forms.TextBox();
			uxBrojOdobrenjaPozivLabel = new System.Windows.Forms.Label();
			this.uxIznos = new System.Windows.Forms.TextBox();
			uxIznosLabel = new System.Windows.Forms.Label();
			this.uxDatumIzvrsenja = new System.Windows.Forms.DateTimePicker();
			uxDatumIzvrsenjaLabel = new System.Windows.Forms.Label();
			this.uxPlacen = new System.Windows.Forms.CheckBox();
			uxPlacenLabel = new System.Windows.Forms.Label();
			this.uxIDKnjizenja = new System.Windows.Forms.ComboBox();
			uxIDKnjizenjaLabel = new System.Windows.Forms.Label();
			this.uxIDKlijent = new System.Windows.Forms.ComboBox();
			uxIDKlijentLabel = new System.Windows.Forms.Label();
			this.uxCalculated = new System.Windows.Forms.TextBox();
			uxCalculatedLabel = new System.Windows.Forms.Label();
			this.uxDatumDospijeca = new System.Windows.Forms.DateTimePicker();
			uxDatumDospijecaLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxNalogodavateljaNazivLabel
			//
			this.uxNalogodavateljaNazivLabel.Text = "NalogodavateljaNaziv:";
			this.uxNalogodavateljaNazivLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxNalogodavateljaNazivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljaNazivLabel);			
			//
			// uxNalogodavateljaNaziv
			//
			this.uxNalogodavateljaNaziv.Width = 250;
			this.uxNalogodavateljaNaziv.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljaNaziv);
			this.uxNalogodavateljaNaziv.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxNalogodavateljaNaziv);
			//
			// uxNalogodavateljaSjedisteLabel
			//
			this.uxNalogodavateljaSjedisteLabel.Text = "NalogodavateljaSjediste:";
			this.uxNalogodavateljaSjedisteLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxNalogodavateljaSjedisteLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljaSjedisteLabel);			
			//
			// uxNalogodavateljaSjediste
			//
			this.uxNalogodavateljaSjediste.Width = 250;
			this.uxNalogodavateljaSjediste.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljaSjediste);
			this.uxNalogodavateljaSjediste.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxNalogodavateljaSjediste);
			//
			// uxNalogodavateljRacunLabel
			//
			this.uxNalogodavateljRacunLabel.Text = "NalogodavateljRacun:";
			this.uxNalogodavateljRacunLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxNalogodavateljRacunLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljRacunLabel);			
			//
			// uxNalogodavateljRacun
			//
			this.uxNalogodavateljRacun.Width = 250;
			this.uxNalogodavateljRacun.MaxLength = 26;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNalogodavateljRacun);
			this.uxNalogodavateljRacun.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxNalogodavateljRacun);
			//
			// uxBrojZaduzenjaModelLabel
			//
			this.uxBrojZaduzenjaModelLabel.Text = "BrojZaduzenjaModel:";
			this.uxBrojZaduzenjaModelLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxBrojZaduzenjaModelLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojZaduzenjaModelLabel);			
			//
			// uxBrojZaduzenjaModel
			//
			this.uxBrojZaduzenjaModel.Width = 250;
			this.uxBrojZaduzenjaModel.MaxLength = 2;
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojZaduzenjaModel);
			this.uxBrojZaduzenjaModel.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxBrojZaduzenjaModel);
			//
			// uxBrojZaduzenjaPozivLabel
			//
			this.uxBrojZaduzenjaPozivLabel.Text = "BrojZaduzenjaPoziv:";
			this.uxBrojZaduzenjaPozivLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxBrojZaduzenjaPozivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojZaduzenjaPozivLabel);			
			//
			// uxBrojZaduzenjaPoziv
			//
			this.uxBrojZaduzenjaPoziv.Width = 250;
			this.uxBrojZaduzenjaPoziv.MaxLength = 23;
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojZaduzenjaPoziv);
			this.uxBrojZaduzenjaPoziv.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxBrojZaduzenjaPoziv);
			//
			// uxSvrhaDoznakeLabel
			//
			this.uxSvrhaDoznakeLabel.Text = "SvrhaDoznake:";
			this.uxSvrhaDoznakeLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxSvrhaDoznakeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSvrhaDoznakeLabel);			
			//
			// uxSvrhaDoznake
			//
			this.uxSvrhaDoznake.Width = 250;
			this.uxSvrhaDoznake.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxSvrhaDoznake);
			this.uxSvrhaDoznake.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxSvrhaDoznake);
			//
			// uxPrimateljNazivLabel
			//
			this.uxPrimateljNazivLabel.Text = "PrimateljNaziv:";
			this.uxPrimateljNazivLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxPrimateljNazivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljNazivLabel);			
			//
			// uxPrimateljNaziv
			//
			this.uxPrimateljNaziv.Width = 250;
			this.uxPrimateljNaziv.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljNaziv);
			this.uxPrimateljNaziv.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxPrimateljNaziv);
			//
			// uxPrimateljSjedisteLabel
			//
			this.uxPrimateljSjedisteLabel.Text = "PrimateljSjediste:";
			this.uxPrimateljSjedisteLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxPrimateljSjedisteLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljSjedisteLabel);			
			//
			// uxPrimateljSjediste
			//
			this.uxPrimateljSjediste.Width = 250;
			this.uxPrimateljSjediste.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljSjediste);
			this.uxPrimateljSjediste.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxPrimateljSjediste);
			//
			// uxPrimateljRacunLabel
			//
			this.uxPrimateljRacunLabel.Text = "PrimateljRacun:";
			this.uxPrimateljRacunLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxPrimateljRacunLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljRacunLabel);			
			//
			// uxPrimateljRacun
			//
			this.uxPrimateljRacun.Width = 250;
			this.uxPrimateljRacun.MaxLength = 26;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrimateljRacun);
			this.uxPrimateljRacun.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxPrimateljRacun);
			//
			// uxBrojOdobrenjaModelLabel
			//
			this.uxBrojOdobrenjaModelLabel.Text = "BrojOdobrenjaModel:";
			this.uxBrojOdobrenjaModelLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxBrojOdobrenjaModelLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojOdobrenjaModelLabel);			
			//
			// uxBrojOdobrenjaModel
			//
			this.uxBrojOdobrenjaModel.Width = 250;
			this.uxBrojOdobrenjaModel.MaxLength = 2;
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojOdobrenjaModel);
			this.uxBrojOdobrenjaModel.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxBrojOdobrenjaModel);
			//
			// uxBrojOdobrenjaPozivLabel
			//
			this.uxBrojOdobrenjaPozivLabel.Text = "BrojOdobrenjaPoziv:";
			this.uxBrojOdobrenjaPozivLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxBrojOdobrenjaPozivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojOdobrenjaPozivLabel);			
			//
			// uxBrojOdobrenjaPoziv
			//
			this.uxBrojOdobrenjaPoziv.Width = 250;
			this.uxBrojOdobrenjaPoziv.MaxLength = 23;
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrojOdobrenjaPoziv);
			this.uxBrojOdobrenjaPoziv.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxBrojOdobrenjaPoziv);
			//
			// uxIznosLabel
			//
			this.uxIznosLabel.Text = "Iznos:";
			this.uxIznosLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIznosLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznosLabel);			
			//
			// uxIznos
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznos);
			this.uxIznos.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIznos);
			//
			// uxDatumIzvrsenjaLabel
			//
			this.uxDatumIzvrsenjaLabel.Text = "DatumIzvrsenja:";
			this.uxDatumIzvrsenjaLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxDatumIzvrsenjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumIzvrsenjaLabel);			
			//
			// uxDatumIzvrsenja
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumIzvrsenja);
			this.uxDatumIzvrsenja.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxDatumIzvrsenja);
			//
			// uxPlacenLabel
			//
			this.uxPlacenLabel.Text = "Placen:";
			this.uxPlacenLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxPlacenLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPlacenLabel);			
			//
			// uxPlacen
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxPlacen);
			this.uxPlacen.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxPlacen);
			//
			// uxIDKnjizenjaLabel
			//
			this.uxIDKnjizenjaLabel.Text = "IDKnjizenja:";
			this.uxIDKnjizenjaLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxIDKnjizenjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKnjizenjaLabel);			
			//
			// uxIDKnjizenja
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKnjizenja);
			this.uxIDKnjizenja.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxIDKnjizenja);
			//
			// uxIDKlijentLabel
			//
			this.uxIDKlijentLabel.Text = "IDKlijent:";
			this.uxIDKlijentLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxIDKlijentLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKlijentLabel);			
			//
			// uxIDKlijent
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKlijent);
			this.uxIDKlijent.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxIDKlijent);
			//
			// uxCalculatedLabel
			//
			this.uxCalculatedLabel.Text = "Calculated:";
			this.uxCalculatedLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxCalculatedLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxCalculatedLabel);			
			//
			// uxCalculated
			//
			this.uxCalculated.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxCalculated);
			this.uxCalculated.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxCalculated);
			//
			// uxDatumDospijecaLabel
			//
			this.uxDatumDospijecaLabel.Text = "DatumDospijeca:";
			this.uxDatumDospijecaLabel.Location = new System.Drawing.Point(3, 468);
			this.Controls.Add(this.uxDatumDospijecaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDospijecaLabel);			
			//
			// uxDatumDospijeca
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDospijeca);
			this.uxDatumDospijeca.Location = new System.Drawing.Point(160, 468);
			this.Controls.Add(this.uxDatumDospijeca);
			//
			// uxIDKlijent
			//				
			this.uxIDKlijent.DisplayMember = "ImeKlijenta";	
			this.uxIDKlijent.ValueMember = "ID";	
			//
			// uxIDKnjizenja
			//				
			this.uxIDKnjizenja.DisplayMember = "IDKonto";	
			this.uxIDKnjizenja.ValueMember = "ID";	
			// 
			// VirmanEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "VirmanEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Klijent> _IDKlijentList;
		
		/// <summary>
		/// The ComboBox associated with the IDKlijent property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Klijent> IDKlijentList
		{
			get {return _IDKlijentList;}
			set 
			{
				this._IDKlijentList = value;
				this.uxIDKlijent.DataSource = null;
				this.uxIDKlijent.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKlijentList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKlijent property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKlijentList
		{
			get { return _allowNewItemInIDKlijentList;}
			set
			{
				this._allowNewItemInIDKlijentList = value;
				this.uxIDKlijent.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.KnjizenjeStavka> _IDKnjizenjaList;
		
		/// <summary>
		/// The ComboBox associated with the IDKnjizenja property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.KnjizenjeStavka> IDKnjizenjaList
		{
			get {return _IDKnjizenjaList;}
			set 
			{
				this._IDKnjizenjaList = value;
				this.uxIDKnjizenja.DataSource = null;
				this.uxIDKnjizenja.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKnjizenjaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKnjizenja property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKnjizenjaList
		{
			get { return _allowNewItemInIDKnjizenjaList;}
			set
			{
				this._allowNewItemInIDKnjizenjaList = value;
				this.uxIDKnjizenja.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
